package DAL.DTO;

public class RoleDTO {
        private long idRole;
        private boolean gestionClient;
        private boolean gestionIntervention;
        private boolean gestionPlanning;
        private boolean gestionDirection;
        private boolean gestionOnSite;
        private boolean gestionSysteme;

        //Constructeurs
	public RoleDTO( long idRole, boolean gestionClient, boolean gestionIntervention,
                        boolean gestionPlanning, boolean gestionDirection,
                        boolean gestionOnSite, boolean gestionSysteme) {
		super();
		setIdRole(idRole);
		setGestionClient(gestionClient);
                setGestionIntervention(gestionIntervention);
		setGestionPlanning(gestionPlanning);
		setGestionDirection(gestionDirection);
                setGestionOnSite(gestionOnSite);
		setGestionSysteme(gestionSysteme);}
        
	public RoleDTO( boolean gestionClient, boolean gestionIntervention,
                        boolean gestionPlanning, boolean gestionDirection,
                        boolean gestionOnSite, boolean gestionSysteme) {
		super();
		setGestionClient(gestionClient);
                setGestionIntervention(gestionIntervention);
		setGestionPlanning(gestionPlanning);
		setGestionDirection(gestionDirection);
                setGestionOnSite(gestionOnSite);
		setGestionSysteme(gestionSysteme);}
        
	//Setters
        public void setIdRole(long idRole) {
		UTIL.Util.checkPositive(idRole);
                this.idRole = idRole;
	}
	
        public void setGestionClient(boolean gestionClient) {
		this.gestionClient = gestionClient;
	}

        public void setGestionIntervention(boolean gestionIntervention) {
		this.gestionIntervention = gestionIntervention;
	}
	
        public void setGestionPlanning(boolean gestionPlanning) {
		this.gestionPlanning = gestionPlanning;
	}
	
        public void setGestionDirection(boolean gestionDirection) {
		this.gestionDirection = gestionDirection;
	}
	
        public void setGestionOnSite(boolean gestionOnSite) {
		this.gestionOnSite = gestionOnSite;
	}
	
        public void setGestionSysteme(boolean gestionSysteme) {
		this.gestionSysteme = gestionSysteme;
	}
	
        //Getters 
	public long getIdRole() {
		return idRole;
	}
	
        public boolean getGestionClient() {
		return gestionClient;
	}

        public boolean getGestionIntervention() {
		return gestionIntervention;
	}
	
        public boolean getGestionPlanning() {
		return gestionPlanning;
	}
	
        public boolean getGestionDirection() {
		return gestionDirection;
	}
	
        public boolean getGestionOnSite() {
		return gestionOnSite;
	}
	
        public boolean getGestionSysteme() {
		return gestionSysteme;
	}
}